$(function() {
	function IndexImg() {
		var len = $(".scroll-inner li").length;
		var index = 0;
		var adTimer;
		function showImg(index) {
			var adWidth = $(".scroll-inner li").width();
			$(".scroll-inner").animate({
				left : -adWidth * index
			}, 1000);
		}
		var adTimer = setInterval(function() {
			showImg(index);
			index++;
			if (index == len) {
				index = 0;
			}
		}, 5000);
	}
	IndexImg();
});